﻿<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ProtoXaml="clr-namespace:ProtoXaml;assembly=ProtoXaml"
    >
    <ResourceDictionary.MergedDictionaries>
		<ResourceDictionary Source="pack://application:,,,/ProtoXaml;component/Skins/NapkinScrollBars.xaml"/>
    </ResourceDictionary.MergedDictionaries>
      
    <FontFamily x:Key="HandwritingFont">pack://application:,,,/ProtoXaml;component/Skins/#Simon Handwriting 2</FontFamily>
      
    <Style TargetType="{x:Type Label}">
		<Setter Property="FontFamily" Value="{StaticResource HandwritingFont}" />
		<Setter Property="FontSize" Value="20"/>
	</Style>
	 
	 
    <Style TargetType="{x:Type Button}">
		<Setter Property="Background" Value="#FFB9B99D" />
		<Setter Property="FontFamily" Value="{StaticResource HandwritingFont}" />
		<Setter Property="FontSize" Value="20"/>		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
						<ProtoXaml:WigglyBorder x:Name="Border" BorderBrush="Black" BorderThickness="1" Padding="2" 
							CornerRadius="9">
							<Grid>							
								<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
							</Grid>
						</ProtoXaml:WigglyBorder>
						<ControlTemplate.Triggers>
							<Trigger Property="IsFocused" Value="True"/>
							<Trigger Property="IsDefaulted" Value="True"/>							
							<Trigger Property="IsPressed" Value="True"/>
							<Trigger Property="IsEnabled" Value="False"/>
							<Trigger Property="IsMouseOver" Value="true">
								<Setter Property="Background" TargetName="Border" Value="#FFF0F0F0" />
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>	
	
	<Style TargetType="{x:Type TextBox}">
		<Setter Property="FontFamily" Value="{StaticResource HandwritingFont}" />
		<Setter Property="FontSize" Value="20"/>	
		<Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
		<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
		<Setter Property="AllowDrop" Value="true"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TextBox}">
					<Grid>
						<ProtoXaml:WigglyBorder x:Name="Border" Background="{DynamicResource WindowBackgroundBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1" Padding="2" CornerRadius="0">
							<ScrollViewer SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" x:Name="PART_ContentHost"/>
						</ProtoXaml:WigglyBorder>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter Property="BorderBrush" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>


    <Style TargetType="{x:Type Menu}">
        <Setter Property="FontFamily" Value="{StaticResource HandwritingFont}" />
        <Setter Property="FontSize" Value="16"/>
    </Style>


    <Style x:Key="{x:Static MenuItem.SeparatorStyleKey}" TargetType="{x:Type Separator}">
        <Setter Property="OverridesDefaultStyle" Value="true" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Separator}">
                    <ProtoXaml:WigglyLine Height="5" HorizontalAlignment="Stretch" Stroke="DarkGray" StrokeThickness="2"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>



</ResourceDictionary>